package com.healthcloud.service.impl;

import com.healthcloud.dao.VersionMapper;
import com.healthcloud.entity.VersionEntity;
import com.healthcloud.service.VersionService;
import com.healthcloud.utils.PageParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by houxianghua on 2015/7/23.
 */
@Service
@Transactional
public class VersionServiceImpl implements VersionService {

    @Autowired
    private VersionMapper versionMapper;

    @Override
    public List<VersionEntity> search(VersionEntity entity, PageParam pageParam) {
        // TODO Auto-generated method stub
        return versionMapper.search(entity, pageParam);
    }

    @Override
    public int count(VersionEntity entity) {
        // TODO Auto-generated method stub
        return versionMapper.count(entity);
    }

    @Override
    public VersionEntity get(int id) {
        // TODO Auto-generated method stub
        return versionMapper.get(id);
    }

    @Override
    public int save(VersionEntity entity) {
        // TODO Auto-generated method stub
        return versionMapper.save(entity);
    }

    @Override
    public int update(VersionEntity entity) {
        // TODO Auto-generated method stub
        return versionMapper.update(entity);
    }

    @Override
    public int updateVersionAddress(VersionEntity entity) {
        // TODO Auto-generated method stub
        return versionMapper.updateVersionAddress(entity);
    }

    @Override
    public int delete(int id) {
        // TODO Auto-generated method stub
        return versionMapper.delete(id);
    }

}
